
import { request } from './request'
import qs from 'qs'




//获取订单列表
export function listAllOrder(orderObj) {
    return request({
        url: 'order/listAllOrder',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

// 订单详情
export function orderDetail(orderObj) {
    return request({
        url: 'order/orderDetail',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}


//发货
export function sendOrder(orderObj) {
    return request({
        url: 'order/sendOrder',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}


//=========================


//获取订单列表
export function getOrderByPages(orderObj) {
    return request({
        url: 'orders/getOrderByPages',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

// 订单详情
export function searchOrders(orderObj) {
    return request({
        url: 'orders/getOrderDetail',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

//物流信息
export function wuliu(orderObj) {
    return request({
        url: 'orders/checkWuLiu',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}


//特殊处理
export function updateOrdersDetail(orderObj) {
    return request({
        url: 'orders/specialsOrder',
        method: 'post',
        data: qs.stringify(orderObj)
    })
}

//获取店铺收货信息
export function shopInfo(obj) {
    return request({
        url: 'shop/childShop',
        method: 'post',
        data: qs.stringify(obj)
    })
}

//申请平台备货
export function addSend(obj) {
    return request({
        url: 'orders/addSend',
        method: 'post',
        data: qs.stringify(obj)
    })
}

//申请平台直发
export function applayOrder(obj) {
    return request({
        url: 'orders/terraceSend',
        method: 'post',
        data: qs.stringify(obj)
    })
}

//退款
export function returnO(obj) {
    return request({
        url: 'returnOModularaAction.action',
        method: 'post',
        data: qs.stringify(obj)
    })
}

// 导入数据
export function importOrder(obj) {
    return request({
        url: 'orders/importOrders',
        headers: {
            'content-type': 'multipart/form-data'
        },
        method: 'post',
        data: obj
    })
}

// 获取分店信息
export function shopList(obj) {
    return request({
        url: 'shop/childShop',
        method: 'post',
        data: qs.stringify(obj)
    })
}
